package com.lzy.canal.component.result.mysql;

import com.alibaba.otter.canal.protocol.CanalEntry;
import com.lzy.canal.component.result.BaseConsumerResultData;

import java.util.Map;

/**
 * 处理ddl语句结果
 *
 */
public class DefaultConsumerDdlRestData implements BaseConsumerResultData {

    private final CanalEntry.EventType eventType;

    public DefaultConsumerDdlRestData(CanalEntry.EventType eventType) {
        this.eventType = eventType;
    }

    @Override
    public Map<String, Object> getResource() {
        return null;
    }

    @Override
    public CanalEntry.EventType getEventType() {
        return this.eventType;
    }
}
